package com.example.learn01.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result  {
    private  String code;
    private String msg;
    private Object date;

    public static Result success(){
        return new Result(Constants.COOE_200,"","");
    }

    public static Result success(String msg,Object date){
        return new Result(Constants.COOE_200,msg,date);
    }
    public static Result error(String code, String msg){
        return new Result(code,msg,"");
    }
}
